package com.jason.library.common.ui;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;

import androidx.annotation.Nullable;
import androidx.appcompat.app.AppCompatActivity;

import com.jason.library.common.R;
import com.jason.library.crash.ui.CrashActivity;
import com.jason.library.network.ui.NetRequestActivity;

/**
 * Description:JasonToolsActivity
 *
 * @author chenbaoyang
 * @create 2020/12/15 10:12
 */
public class JasonToolsActivity  extends AppCompatActivity {

    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_jason_tools);
    }

    public void onClickOpenCrash(View view) {
        openPage(CrashActivity.class);
    }

    public void onClickOpenNet(View view) {
        openPage(NetRequestActivity.class);
    }

    private void openPage(Class<?> clz) {
        Intent intent = new Intent(JasonToolsActivity.this, clz);
        startActivity(intent);
    }
}
